package com.ljh.blog.pojo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author: Themberfue
 * @date: 2025/4/1 20:07
 * @description:
 */
@Data
public class UserInfoRequest {
    @NotNull(message = "用户名不得为空")
    @Length(max = 20, min = 2, message = "用户名长度在2位到20位之间")
    private String userName;
    @NotNull(message = "密码不得为空")
    private String password;
}
